package ca.newcommerce.youtube.data
{
    import ca.newcommerce.youtube.iterators.*;

    public class CommentData extends AbstractData
    {
        protected var _data:Object;

        public function CommentData(param1:Object)
        {
            this._data = param1;
            return;
        }// end function

        public function get links() : LinkIterator
        {
            return new LinkIterator(this._data.link);
        }// end function

        public function get authors() : AuthorIterator
        {
            return new AuthorIterator(this._data.author);
        }// end function

        public function get content() : String
        {
            return fromObj(this._data, "content");
        }// end function

        public function get updated() : String
        {
            return fromObj(this._data, "updated");
        }// end function

        public function get id() : String
        {
            return fromObj(this._data, "id");
        }// end function

        public function get categories() : CategoryIterator
        {
            return new CategoryIterator(this._data.category);
        }// end function

        public function get published() : String
        {
            return fromObj(this._data, "published");
        }// end function

        public function get title() : String
        {
            return fromObj(this._data, "title");
        }// end function

    }
}
